<template>
  <div>
      <el-row :gutter="10">
          <el-radio v-model="sex" :label="1">男</el-radio>
          <el-radio v-model="sex" :label="0">女</el-radio>
      </el-row>

      <el-row :gutter="10">
          <el-radio-group v-model="sex" @change="handleChange">
              <el-radio :label="1">男</el-radio>
              <el-radio :label="0">女</el-radio>
          </el-radio-group>
      </el-row>
  </div>
</template>

<script>
export default {
    name:"Radio",
    data(){
        return {
            sex:1
        }
    },
    methods:{
        handleChange(value){
            console.log(value);
        }
    }

}
</script>

<style>

</style>